home *** CD-ROM | disk | FTP | other *** search
- # /etc/rc
- #
- # These commands are executed at boot time by init(8).
- # User customization should go in /etc/rc.local.
-
- PATH=/bin:/usr/bin:/etc
-
- # Check the integrity of all filesystems
- /bin/fsck -A -a
- # If there was a failure, drop into single-user mode.
- if [ $? -gt 1 ] ; then
- echo fsck failed. Please reboot.
- sh
- fi
-
- # Remount the root filesystem in read-write mode
- /etc/mount -n -o remount /dev/hda3 /
-
- # remove /etc/mtab* so that mount will create it with a root entry
- /bin/rm -f /etc/mtab* /etc/nologin /etc/utmp
-
- # mount file systems in fstab (and create an entry for /)
- # but not NFS because TCP/IP is not yet configured
- /etc/mount -avt nonfs
-
- # start the update(8) sync demon
- /etc/update &
-
- # remove stale locks (must be done after mount -a!)
- /bin/rm -f /usr/spool/locks/* /usr/spool/uucp/LCK..* /tmp/.X*lock
-
- # enable swapping
- /etc/swapon -a
-
- # do any local stuff
- /bin/sh /etc/rc.local
-
- exit 0
-